package net.sky.oa.test.action.system;

import javax.annotation.Resource;

import net.sky.oa.action.system.SysPostAction;
import net.sky.oa.test.BaseActionTestCase;

import org.junit.Before;
import org.junit.Test;
import org.springframework.test.annotation.Rollback;

public class SysPostActionTestCase extends BaseActionTestCase {

	@Resource
	private SysPostAction sysPostAction;

	@Before
	public void setUp() {
		super.setUp();
	}

	@Test
	@Rollback(false)
	public void add() {
		request.addParameter("key", "信息员");
		sysPostAction.save();
	}

	@Test
	@Rollback(false)
	public void find() {
		String result = sysPostAction.list();
		System.out.println("result:" + result);
		System.out.println("result:" + sysPostAction.getJsonString());
	}
}